//
//  BoxViewController.m
//  cMeeting
//
//  Created by 梦居 on 2019/1/10.
//  Copyright © 2019 中移（杭州）信息技术有限公司. All rights reserved.
//

#import "BoxViewController.h"
#import "BoxMangerViewController.h"
#import "FimilyMenberViewController.h"
@interface BoxViewController ()

@end

@implementation BoxViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.navigationController.navigationBar setTitleTextAttributes:
     
     @{NSFontAttributeName:[UIFont systemFontOfSize:20],
       
       NSForegroundColorAttributeName:[UIColor colorWithHexStr:@"#ffffff"]}];
    UIButton * jidinghe = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    jidinghe.backgroundColor = [UIColor blueColor];
    [jidinghe addTarget:self action:@selector(jidinghe:) forControlEvents:(UIControlEventTouchUpInside)];
    jidinghe.tag = 10;
    [self.view addSubview:jidinghe];
    UIButton * home = [[UIButton alloc]initWithFrame:CGRectMake(100, 200, 100, 100)];
    home.backgroundColor = [UIColor greenColor];
    home.tag = 20;
    [home addTarget:self action:@selector(jidinghe:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:home];
    
}
- (void)jidinghe:(UIButton*) btn{
    if (btn.tag == 10) {
        BoxMangerViewController * boxManger = [[BoxMangerViewController alloc]init];
        [self.navigationController pushViewController:boxManger animated:YES];
        
        
    }
    else
    {
        FimilyMenberViewController * fimilyMenberVC = [[FimilyMenberViewController alloc]init];
        [self.navigationController pushViewController:fimilyMenberVC animated:true];
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
